import pygame


class Game:
    window = None
    quanping = True
    W = 1600
    H = 900
    bg = None
    kongge = False
    music = None
    index = 0
    yinyue = True
    tupian = None
    shengli = True
    player1 = None
    current_index = 0
    zixiang = None

    tubiao_1 = None
    tubiao_2 = None

    G = 0.3
    G_speed = 0
    speed = 1
    direction = None
    direction_W = False
    direction_A = False
    direction_S = False
    direction_D = False
    character_images = None
    current_images = None
    playerGroup = None
    player2 = None
    current_index2 = 0
    G2 = 0.3
    G_speed2 = 0
    speed2 = 1
    direction2 = "left"
    direction_W2 = False
    direction_A2 = False
    direction_S2 = False
    direction_D2 = False
    character_images2 = None
    current_images2 = None
    playerGroup2 = None
    fangkuai = False

    jitui1 = 0
    jitui2 = 0
    xiangzishuliang = 0
    wall = None
    BLOCK_SIZE = 50
    MAP_HEIGHT = 18
    MAP_WIDTH = 32
    wall_list = []
    zixinag_img = None
    # 音效
    jump_music = None
    fashe_music = None

    bullet = None
    bullet2 = None
    bullet_list = []
    bullet_list2 = []

    jump2 = 0
    jump = 0

    xiangzishuliang2 = 0
    fangkuai2 = False

    player1_x = 0
    player1_y = 0

    player2_x = 0
    player2_y = 0

    player1_ming = 3
    player2_ming = 3

    def __init__(self):
        Game.window = None
        Game.shengli = True
        Game.W = 1600
        Game.H = 900
        Game.index = 0
        Game.player1 = None
        Game.current_index = 0
        Game.shengli = True
        Game.player1_ming = 3
        Game.player2_ming = 3
        Game.jump = 0
        Game.jump2 = 0
        Game.direction = None
        Game.direction_W = False
        Game.direction_A = False
        Game.direction_S = False
        Game.direction_D = False
        Game.character_images = None
        Game.current_images = None
        Game.yinyue = True
        Game.playerGroup = pygame.sprite.Group()

        Game.xiangzishuliang = 0
        Game.wall = None
        Game.BLOCK_SIZE = 50
        Game.MAP_HEIGHT = 18
        Game.MAP_WIDTH = 32
        Game.wall_list = []

        Game.bullet = None
        Game.bullet_list = []


class Level:
    levels = None
